
/* for non auto-postback only */
function CS_Toggle( DivObjID, ImageObjID, HiddenObjID, UpImage, DownImage )
{
	var divobj = document.getElementById(DivObjID);
	var imgobj = document.getElementById(ImageObjID);
	var hobj = document.getElementById(HiddenObjID);
	if( hobj == null )
	{
		// Non IE - can't get input elements by Id
		var formObj = document.forms[0];
		if( formObj )
			hobj = eval( "formObj." + HiddenObjID );
	}

	if( divobj.style.display == "inline" ) 
	{
		// It's been rolled up
		divobj.style.display = "none";
		imgobj.src = DownImage;
		hobj.value = "closed";
	}
	else 
	{
		// Its been rolled down
		divobj.style.display = "inline";
		imgobj.src = UpImage;
		hobj.value = "open";
	}
}
